package com.hskn.hss.module.alarmperson.mapper;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hskn.hss.module.alarmperson.entity.AlarmPerson;
import com.hskn.hss.module.alarmperson.entity.AlarmPersonCharts;
import com.hskn.hss.module.depart.entity.SysDepart;
import com.hskn.hss.module.depart.entity.SysDepartCharts;
import com.hskn.hss.module.statistics.vo.TlPersonListRes;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author hskn
 * @since 2021-05-21
 */
public interface AlarmPersonMapper extends BaseMapper<AlarmPerson> {
    List<Map<String, Object>> collectList(JSONObject params);

    Long collectListCount(JSONObject params);

    List<TlPersonListRes> collectListExport(JSONObject params);
    List<SysDepartCharts> selectAlarmPersonForDepart(SysDepart depart);

    List<Map> alarmCountByTypeName(Map map);
    List<Map> alarmViolationByTypeName(Map map);

    List<AlarmPersonCharts> selectAlarmPersonForCharts(AlarmPerson alarmPerson);
    List<AlarmPersonCharts> selectAlarmPersonForChartsTable(AlarmPerson alarmPerson);
}
